package com.eschool.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormaterUtil {
	
	public final static String SQL_DATE = "yyyy-MM-dd";
	public final static String SQL_DATETIME = "yyyy-MM-dd HH:mm:ss";

	public static String format(String format, Date date)
	{
		SimpleDateFormat formatter = new SimpleDateFormat(format);
		
		return  formatter.format(date);
	}
}
